import { Outlet, useParams } from "react-router-dom";
function Page2() {
  const res = useParams();
  console.log(res);

  return (
    <div>
      <h1> Page2---ID为{res.id}</h1>
      <Outlet></Outlet>
    </div>
  );
}
export default Page2;
